Skip to content

Fix/percy build items pagination precision#351

Merged
Dave3130 merged 1 commit into
browserstack:percyfrom
DeRaowl:fix/percy-build-items-pagination-precision
Jul 24, 2026
Merged

Fix/percy build items pagination precision#351
Dave3130 merged 1 commit into
browserstack:percyfrom
DeRaowl:fix/percy-build-items-pagination-precision

Conversation

@DeRaowl

@DeRaowl DeRaowl commented Jul 21, 2026

Copy link
Copy Markdown

No description provided.

- percy_get_build detail=snapshots/changes fetched only the first page
  (page[limit]=30, cursor never followed) and reported partial counts as
  complete. Now fetches the full set and follows meta.pagination.next_cursor
  with stall/page-cap guards, surfacing a warning if truncated.
- detail=changes returned 0 items: the API resolves filter[category]=changed
  through filter[subcategories][]; now sent (unreviewed, changes_requested,
  approved). Same fix in percy_search_builds.
- Diff ratios were rounded with toFixed(1), hiding small diffs (0.02% -> 0.0%).
  New formatDiffPercent shows two decimals with a <0.01% floor, applied across
  v2 tools and v1 workflows.
- percyGet now supports repeated array params (filter[...][]), also fixing
  percy_search_builds dropping all but the last browser_ids/widths value.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@DeRaowl
DeRaowl changed the base branch from main to percy July 21, 2026 12:57
@Dave3130
Dave3130 merged commit c069ea1 into browserstack:percy Jul 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants